/* ==========================================================================
   PERBAIKAN TOTAL KEBOCORAN LAYAR DIMENSI > 988PX
   ========================================================================== */
html,
body {
    margin: 0;
    padding: 0;
    height: 100dvh !important;
    min-height: 100dvh !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    background-color: #0b2e16 !important;
    /* Warna dasar darurat jika terjadi celah */
}

.font-judul-lte {
    font-family: 'Montserrat', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Background Gedung Khusus Layar Besar */
.bg-gedung-ma {
    /* Menggunakan path relatif naik 3 tingkat dari folder css ke folder images */
    background-size: cover;
    background-position: center;
}

.backdrop-glass-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.tracking-wide-custom {
    letter-spacing: 1.5px !important;
}

.tracking-wider-custom {
    letter-spacing: 3px !important;
}

/* Custom Input Transparan */
.input-lte4-custom {
    transition: all 0.2s ease-in-out;
}

.input-lte4-custom:focus {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* ==========================================================================
   KONDISI DEFAULT: LAPTOP / DEKSTOP BESAR (Diatas 992px)
   ========================================================================== */
.main-layout-container {
    height: calc(100dvh - 95px);
}

.login-inner-box {
    max-width: 380px;
}

.app-logo-img {
    width: 90px;
    margin-bottom: 10px;
}

.main-app-title {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.sub-app-title {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
}

.branch-app-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.btn-submit-login {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
}

/* ==========================================================================
   RESPONSIF KHUSUS: LAPTOP KECIL / RESOLUSI RENDAH (Tinggi < 720px)
   ========================================================================== */
@media (min-height: 200px) and (max-height: 720px) and (min-width: 992px) {
    .app-logo-img {
        width: 65px;
        margin-bottom: 2px;
    }

    .main-app-title {
        font-size: 1.5rem;
    }

    .sub-app-title {
        font-size: 0.95rem;
    }

    .branch-app-title {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .divider-line {
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .login-form-element .mb-3 {
        margin-bottom: 0.5rem !important;
    }

    .form-group-pass {
        margin-bottom: 1rem !important;
    }

    .btn-submit-login {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   RESPONSIF KHUSUS: TABLET & HP (Dibawah 992px)
   ========================================================================== */
@media (max-width: 991.98px) {
    .main-layout-container {
        height: auto !important;
        min-height: calc(100dvh - 95px) !important;
        background-image: none !important;
        background-color: #0b2e16 !important;
    }

    .login-panel-right {
        width: 100% !important;
        height: 100% !important;
        min-height: calc(100dvh - 95px) !important;
        padding-top: 3rem !important;
        padding-bottom: 6rem !important;
        display: block !important;
        background-color: #0b2e16 !important;
    }

    .login-inner-box {
        max-width: 360px;
        margin: 0 auto !important;
    }

    .app-logo-img {
        width: 75px;
    }

    .main-app-title {
        font-size: 1.6rem;
    }

    .sub-app-title {
        font-size: 1rem;
    }

    .branch-app-title {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }
}

/* Styling agar pesan error Bootstrap 5 berbentuk balon melayang merah */
.style-warning-balloon {
    position: absolute;
    background-color: #c82333;
    color: #ffffff !important;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 99;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Membuat tanda panah kecil di sebelah kanan balon */
.style-warning-balloon::after {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 5px 5px 5px 0;
    border-style: solid;
    border-color: transparent #c82333 transparent transparent;
}

/* Mengamankan posisi input form agar balon tidak lari */
.form-floating {
    position: relative !important;
}
